﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MVCGen.Mappings {
	public class MappingData {
		public static readonly String PersonMapping = @"<?xml version=""1.0""?>
<hibernate-mapping xmlns=""urn:nhibernate-mapping-2.2"" assembly=""Example"" namespace=""Example.Models"">
	<class name=""Person"" table=""Person"">
		<id name=""Id"" column=""id"" type=""System.Int32"" unsaved-value=""0"">
			<generator class=""native""/>
		</id>
		<property name=""FirstName"" column=""firstname"" type=""System.String"" length=""40"" not-null=""true""/>
		<property name=""LastName"" column=""lastname"" type=""System.String"" length=""80"" not-null=""true""/>
		<many-to-one name=""Family"" column=""family_id"" class=""Family"" foreign-key=""fk_person_family""/>
		<bag name=""Addresses"">
		  <key column=""PersonID""/>
		  <one-to-many class=""Address""/>
		</bag>
	</class>
</hibernate-mapping>";
	}
}
